package way;


public class Maximum {

    public void maximum(int x,int y) {
        if (x > y) {
            System.out.println(x + ">" + y);
        }else {
            System.out.println(x + "<" + y);
        }
    }

    public void maximum(double x,double y,double z) {
        if (x > y && x >z) {
            System.out.println("最大值：" + x);
        }else {
            if (y > x && y > z) {
                System.out.println("最大值：" + y);
            }else {
                System.out.println("最大值：" + z);
            }
        }
    }
}
